package com.fegin;

import com.netflix.ribbon.proxy.annotation.Hystrix;
import com.utils.Result;
import feign.hystrix.FallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "stock",fallback = StockServiceExcepiton.class)
public interface StockService {

    @RequestMapping(method = RequestMethod.GET, value = "/findStock")
     Result findStock();
}
